function bindInputChange(boxs){
	boxs.each(function(index){
		var box = $(this);
		var text = box.data("mytext");
		if(null == box.val() || "" == box.val()){
			box.val(text);
			box.css("color","#999");
		}
		box.blur(function(){
			if(null == box.val() || "" == box.val()){
				box.val(text);
				box.css("color","#999");
			}
		});
		box.focus(function(){
			if(text == box.val() || null == box.val() || "" == box.val()){
				box.val("");
				box.css("color","#666");
			}
		});
	});
}

function getDatas(boxs){
	var formData = {};
	var isOk = true;
	boxs.each(function(index){
		var box = $(this);
		var required = box.data("required");
		var name = box.attr("name");
		var text = box.data("mytext");
		var value = box.val();
		if("TEXTAREA" == box[0].tagName){
			//
		}
		if("1" == required){
			if(null == value || "" == value || text == value){
				var yborder = "1px solid #C7C7C7";
				box.css("border","1px solid red");
				setTimeout(function(){
					box.css("border",yborder);
					setTimeout(function(){
						box.css("border","1px solid red");
						setTimeout(function(){
							box.css("border",yborder);
						},200);
					},200);
				},200);
				isOk = false;
			}
		}
		if(text == value){
			formData[name] = "";
		}else{
			formData[name] = value;
		}
	});
	return isOk ? formData : false;
}